import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  //mode: 'history',
  routes: [
    {
      path: '/main',
      name: 'userBase',
      component: function (resolve) {
        require(['./../pages/userInfo/UserInfo'], resolve)
      }
    },
    //基本信息
    {
      path: '/inputInformation/basic',
      name: 'basicIpt',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/basic'], resolve)
      }
    },
    //入公司前工作经历
    {
      path: '/inputInformation/theCompanyBefore',
      name: 'theCompanyBefore',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/theCompanyBefore'], resolve)
      }
    },

    //教育经历
    {
      path: '/inputInformation/education',
      name: 'education',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/education'], resolve)
      }
    },
    //培训经历
    {
      path: '/inputInformation/training',
      name: 'training',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/training'], resolve)
      }
    },
    //资格证书
    {
      path: '/inputInformation/qualification',
      name: 'qualification',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/qualification'], resolve)
      }
    },
    //语言能力
    {
      path: '/inputInformation/language',
      name: 'language',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/language'], resolve)
      }
    },
    //计算机能力
    {
      path: '/inputInformation/computer',
      name: 'computer',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/computer'], resolve)
      }
    },
    //奖惩情况
    {
      path: '/inputInformation/rewardsAndPunishments',
      name: 'rewardsAndPunishments',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/rewardsAndPunishments'], resolve)
      }
    },
    //家庭情况
    {
      path: '/inputInformation/family',
      name: 'family',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/family'], resolve)
      }
    },
    //紧急联系人
    {
      path: '/inputInformation/emergent',
      name: 'emergent',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/emergent'], resolve)
      }
    },
    //银行信息
    {
      path: '/inputInformation/bank',
      name: 'bank',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/bank'], resolve)
      }
    },
    //社保信息
    {
      path: '/inputInformation/socsec',
      name: 'socsec',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/editInfomation/socsec'], resolve)
      }
    },
    {
      path: '/informationCollection/userInfo',
      name: 'informationCollection',
      component: function (resolve) {
        require(['./../pages/InformationCollection/userInfo/UserInfo'], resolve)
      }
    },


    //个人信息系列
    {
      path: '/Information/basic/:cnta',
      name: 'pbasicif',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/basic'], resolve)
      }
    },
    {
      path: '/Information/theCompanyBefore/:cnta',
      name: 'ptheCompanyBefore',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/theCompanyBefore'], resolve)
      }
    },
    {
      path: '/Information/education/:cnta',
      name: 'peducation',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/education'], resolve)
      }
    },
    //培训经历
    {
      path: '/Information/training/:cnta',
      name: 'ptraining',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/training'], resolve)
      }
    },
    {
      path: '/Information/qualification/:cnta',
      name: 'pqualification',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/qualification'], resolve)
      }
    },
    //语言能力
    {
      path: '/Information/language/:cnta',
      name: 'planguage',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/language'], resolve)
      }
    },
    //计算机能力
    {
      path: '/Information/computer/:cnta',
      name: 'pcomputer',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/computer'], resolve)
      }
    },
    //奖惩情况
    {
      path: '/Information/rewardsAndPunishments/:cnta',
      name: 'prewardsAndPunishments',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/rewardsAndPunishments'], resolve)
      }
    },
    //家庭情况
    {
      path: '/Information/family/:cnta',
      name: 'pfamily',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/family'], resolve)
      }
    },
     //紧急
    {
      path: '/Information/emergent/:cnta',
      name: 'pemergent',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/emergent'], resolve)
      }
    },
    //银行
    {
      path: '/Information/bank/:cnta',
      name: 'pbank',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/bank'], resolve)
      }
    },
    //社保
    {
      path: '/Information/socsec/:cnta',
      name: 'psocsec',
      component: function (resolve) {
        require(['./../pages/userInfo/editInfomation/socsec'], resolve)
      }
    },
    // {
    //   path: '/informationCollection/userInfo/:type',
    //   name: 'InputInformationUserInfo',
    //   component: function (resolve) {
    //     require(['./../pages/InformationCollection/userInfo/InputInformation'], resolve)
    //   }
    // },
    // {
    //   path: '/information/userInfo/:type/:cnta',
    //   name: 'InformationUserInfo',
    //   component: function (resolve) {
    //     require(['./../pages/userInfo/InputInformation'], resolve)
    //   }
    // },
    {
      path: '/guideTo',
      name: 'GuideTo',
      component: function (resolve) {
        require(['./../pages/guideTo/GuideTo'], resolve)
      }
    },
    {
      path: '/prove',
      name: 'Prove',
      component: function (resolve) {
        require(['./../pages/prove/Prove'], resolve)
      }
    },
    //我的信息主页
    {
      path: '/detail',
      name: 'UserDetail',
      component: function (resolve) {
        require(['./../pages/userInfo/UserDetail'], resolve)
      }
    },
    //我的信息详情信息页
    {
      path: '/',
      name: 'index',
      component: function (resolve) {
        require(['./../pages/home/home'], resolve)
      }
    },
    //待办事项--待审批
    {
      path: '/todoList',
      name: 'TodoList',
      component: function (resolve) {
        require(['./../pages/schedule/todoList'], resolve)
      }
    },
    //待办事项--已审批
    {
      path: '/doneList',
      name: 'DoneList',
      component: function (resolve) {
        require(['./../pages/schedule/doneList'], resolve)
      }
    },
    //我的申请
    {
      path: '/myApplication',
      name: 'MyApplication',
      component: function (resolve) {
        require(['./../pages/schedule/myApplication'], resolve)
      }
    },
    {
      path: '/dimission',
      name: 'Dimission',
      component: function (resolve) {
        require(['./../pages/dimission/Dimission'], resolve)
      }
    },
    {
      path: '/dimissionDetail',
      name: 'DimissionDetail',
      component: function (resolve) {
        require(['./../pages/dimission/DimissionDetail'], resolve)
      }
    },
    //我的下属
    {
      path: '/subordinates',
      name: 'Subordinates',
      component: function (resolve) {
        require(['./../pages/subordinates/subordinates'], resolve)
      }
    },
    //员工档案
    {
      path: '/archives',
      name: 'Archives',
      component: function (resolve) {
        require(['./../pages/userInfo/archives'], resolve)
      }
    },
    {
      path: '/hireEnter/:hirdid',
      name: 'InformationCollection',
      component: function (resolve) {
        require(['./../pages/InformationCollection/InformationCollection'], resolve)
      }
    },
    //转正审批
    {
      path: '/formal',
      name: 'Formal',
      component: function (resolve) {
        require(['./../pages/formalStaff/formalSt'], resolve)
      }
    },
    //转正审批2--只显示
    {
      path: '/formalShow',
      name: 'FormalShow',
      component: function (resolve) {
        require(['./../pages/formalStaff/formalSt2'], resolve)
      }
    },
    //离职审批
    {
      path: '/wastage',
      name: 'Wastage',
      component: function (resolve) {
        require(['./../pages/formalStaff/wastage'], resolve)
      }
    },
    //离职审批2--只显示
    {
      path: '/wastageShow',
      name: 'WastageShow',
      component: function (resolve) {
        require(['./../pages/formalStaff/wastage2'], resolve)
      }
    },
    //解除劳动合同审批
    {
      path: '/dissolution',
      name: 'Dissolution',
      component: function (resolve) {
        require(['./../pages/formalStaff/dissolution'], resolve)
      }
    },
    //招聘录用审批
    {
      path: '/employment',
      name: 'Employment',
      component: function (resolve) {
        require(['./../pages/formalStaff/employment'], resolve)
      }
    },
    //人员调动审批
    {
      path: '/mobilization',
      name: 'Mobilization',
      component: function (resolve) {
        require(['./../pages/formalStaff/mobilization'], resolve)
      }
    },
    //离职补偿金审批
    {
      path: '/compensate',
      name: 'Compensate',
      component: function (resolve) {
        require(['./../pages/formalStaff/compensate'], resolve)
      }
    },
    //工作移交审批
    {
      path: '/handover',
      name: 'Handover',
      component: function (resolve) {
        require(['./../pages/formalStaff/handover'], resolve)
      }
    },
    //审批链加签
    {
      path: '/visa',
      name: 'Visa',
      component: function (resolve) {
        require(['./../pages/formalStaff/visa'], resolve)
      }
    },
    //个人信息修改审批
    {
      path: '/infoModify',
      name: 'InfoModify',
      component: function (resolve) {
        require(['./../pages/formalStaff/infoModify'], resolve)
      }
    },
    //证明开具审批
    {
      path: '/proveModify',
      name: 'proveModify',
      component: function (resolve) {
        require(['./../pages/formalStaff/proveJd'], resolve)
      }
    },
    {
      path: '/infoupload',
      name: 'infoupload',
      component: function (resolve) {
        require(['./../pages/userInfo/infoUpload'], resolve)
      }
    },
    {
      path: '/infoUploadImage/:cFileNum/:cYesNo',
      name: 'infoUploadImage',
      component: function (resolve) {
        require(['./../pages/userInfo/infoUploadImage'], resolve)
      }
    }
  ]
})
